<template>
  <div class="profill">
    <el-avatar :size='200'
               :src='editdialog.headimgurl?editdialog.headimgurl:defAvatarUrl'></el-avatar>
    <el-descriptions title="用户信息"
                     border>
      <el-descriptions-item label="用户名">{{editdialog.name}}</el-descriptions-item>
      <el-descriptions-item label="手机号">18100000000</el-descriptions-item>
      <el-descriptions-item label="城市">{{editdialog.city}}</el-descriptions-item>
      <el-descriptions-item label="学历">
        <el-tag size="medium">{{editdialog.degree}}</el-tag>
      </el-descriptions-item>
      <el-descriptions-item label="创建时间">
          <el-tag size="medium" effect='dark'>{{editdialog.cTime}}</el-tag>
      </el-descriptions-item>
      <el-descriptions-item label="项目地址">{{editdialog.productUrl}}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
  import { mapState } from 'vuex'
  export default {
    data() {
      return {
        //默认头像
        defAvatarUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
      }
    },
    components: {
    },
    computed: {
      ...mapState(['editdialog'])
    }
  }

</script>

<style lang='scss' scoped>
</style>
